from django.contrib import admin
from sign.models import Event, Guest
# Register your models here.


class EventAdmin(admin.ModelAdmin):
    list_display = ['id', 'create_time', 'name', 'limit', 'status', 'address', 'start_time']
    search_fields = ['name']
    list_filter = ['status']


class GuestAdmin(admin.ModelAdmin):
    list_display = ['event_id', 'create_time', 'realname', 'phone', 'email', 'sign']


admin.site.register(Event)
admin.site.register(Guest)
